import { EnumAction } from "./enumAction";
import { EnumClassGroup } from "./enumClassGroup";
import { EnumEvent } from "./enumEvent";
import { EnumProperty, EnumPropertyDataSource } from "./enumProperty";


export interface IBindEvent {
    event: EnumEvent,
    action: EnumAction,
    action_id?: string
    isBind?: boolean
}

export interface IBindDbField {
    title:string;
    name:string;
    fieldId:string|number;
}
export interface IBindDbTable {
    id:string|number;
}
export interface IBind {
    properties?: EnumProperty[],//支持的属性配置
    events?: IBindEvent[],//支持的事件配置
    dataSources?:EnumPropertyDataSource[],//支持的数据源配置
    classGroups?: EnumClassGroup[],//支持的通用样式配置组
    specialClassGroups?:Record<string, EnumClassGroup[]> //支持的特殊样式配置组,根据属性名称指定样式配置组
    customCmpnt?: { [key: string]: string } //自定义组件配置
}
